package com.songlanyun.modules.config.model;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import com.songlanyun.common.validator.group.AddGroup;
import com.songlanyun.common.validator.group.UpdateGroup;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * 积分配置-等级配置
 *
 * @author lijiahe
 * @email
 * @date 2022-09-21 14:58:22
 */
@Data
public class PointGradeConfigDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;
    /**
     * 团队下激活人数大于等于目标值升级为此等级
     */
    @Min(value = 0, message = "团队下激活人数大于等于目标值升级为此等级最小是零", groups = {AddGroup.class, UpdateGroup.class})
    @Max(value = 999, message = "团队下激活人数大于等于目标值升级为此等级最大是999", groups = {AddGroup.class, UpdateGroup.class})
    private Integer geNumPeople;
    /**
     * 直推人数
     */
    @Min(value = 0, message = "直推人数最小是零", groups = {AddGroup.class, UpdateGroup.class})
    @Max(value = 999, message = "直推人数最大是999", groups = {AddGroup.class, UpdateGroup.class})
    private Integer numDirectReferrals;
    /**
     * 消费金额
     */
    @Min(value = 0, message = "消费金额最小是零", groups = {AddGroup.class, UpdateGroup.class})
    @Max(value = 999999, message = "消费金额最大是999999", groups = {AddGroup.class, UpdateGroup.class})
    private BigDecimal consumerStandards;
}
